
export default {
	//判断是否在微信中  
	isWechat: function() {
		var ua = window.navigator.userAgent.toLowerCase();
		if (ua.match(/micromessenger/i) == 'micromessenger') {
			return true;
		} else {
			return false;
		}
	},
	isPlatform:function(){
		let  plat = uni.getSystemInfoSync().platform
		if(plat == "android"){
			return 1;
		}else if (plat == "ios"){
			return 2;
		}
		
	},
	
}
